p<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<html>
<head>
    <title>首页</title>
    <style>
        .table-hover{
            width: 80%;
            height:10px;
            margin:0 auto;border:1px;
        }
        td{
            width: 40px;
            height: 20px;
        }
      .table-abc{
        margin:0 auto;border:1px;
        text-align: center;
      }
    </style>
</head>
<body>
<div class="table-abc">
  <form action="${pageContext.request.contextPath}/Kochiya/findByAll">
    <input type="text" name="Byall" value="${Byall}">
    <input type="submit" value="搜索">
  </form>
</div>


<table class="table table-hover">
    <tr>
        <td>count</td>
        <td>code</td>
        <td>name</td>
        <td>region</td>
        <td>surfaceArea</td>
        <td>indepYear</td>
        <td>population</td>
        <td>lifeExpectancy</td>
        <td>gnp</td>
        <td>headOfState</td>
        <td>capital</td>
        <td>code2</td>
        <td><a href="${pageContext.request.contextPath}/Kochiya/findUI">添加</a></td>
    </tr>
    <c:forEach var="list" items="${users}" varStatus="id">
        <tr>
            <td>${id.count}</td>
            <td>${list.code}</td>
            <td>${list.name}</td>
            <td>${list.region}</td>
            <td>${list.surfaceArea}</td>
            <td>${list.indepYear}</td>
            <td>${list.population}</td>
            <td>${list.lifeExpectancy}</td>
            <td>${list.gnp}</td>
            <td>${list.headOfState}</td>
            <td>${list.capital}</td>
            <td>${list.code2}</td>
            <td><a href="${pageContext.request.contextPath}/Kochiya/findByid?code=${list.code}">修改</a>
                <a href="${pageContext.request.contextPath}/Kochiya/findDel?code=${list.code}">删除</a></td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
